]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: make sure to pass a timestamp to LaunchSearch()
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 10 Dec 2012 20:47:25 +0000 (15:47 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 10 Dec 2012 21:50:22 +0000 (16:50 -0500)
Do not repeat past mistakes while we're still in time.

https://bugzilla.gnome.org/show_bug.cgi?id=690009

data/org.gnome.ShellSearchProvider2.xml
js/ui/remoteSearch.js

index 5719f09bed7d43cb6efb0a3620de332bff3c1c82..26b213d575f11a67bb61b8ba372565186da16bd5 100644 (file)
     <!--
         LaunchSearch:
         @terms: Array of search terms, which the provider should treat as logical AND.
+        @timestamp: A timestamp of the user interaction that triggered this call
 
         Asks the search provider to launch a full search in the application for the provided terms.
     -->
     <method name="LaunchSearch">
       <arg type="as" name="terms" direction="in" />
+      <arg type="u" name="timestamp" direction="in" />
     </method>
   </interface>
 </node>
index 3bdba7d863f77d2b96ac403b5f46e387a2103715..0059ca0d849c2f5277e22a57f4d839885783dff2 100644 (file)
@@ -50,6 +50,7 @@ const SearchProvider2Iface = <interface name="org.gnome.Shell.SearchProvider2">
 </method>
 <method name="LaunchSearch">
     <arg type="as" direction="in" />
+    <arg type="u" direction="in" />
 </method>
 </interface>;
 
@@ -290,6 +291,6 @@ const RemoteSearchProvider2 = new Lang.Class({
     },
 
     launchSearch: function(terms) {
-        this.proxy.LaunchSearchRemote(terms);
+        this.proxy.LaunchSearchRemote(terms, global.get_current_time());
     }
 });